<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Context Free LALR1 compiler: contextFree.grammar.Production Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Context Free LALR1 compiler
   &#160;<span id="projectnumber">1.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classcontext_free_1_1grammar_1_1_production.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pac-attribs">Package Attributes</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">contextFree.grammar.Production Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for contextFree.grammar.Production:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1grammar_1_1_production__inherit__graph.png" border="0" usemap="#context_free_8grammar_8_production_inherit__map" alt="Inheritance graph"/></div>
<map name="context_free_8grammar_8_production_inherit__map" id="context_free_8grammar_8_production_inherit__map">
<area shape="rect" id="node3" href="classcontext_free_1_1scanner_1_1_indexed_production.html" title="{contextFree.scanner.IndexedProduction\n|&#45; currentCharIndex\l&#45; lookahead\l|+ IndexedProduction()\l+ IndexedProduction()\l+ IndexedProduction()\l+ IndexedProduction()\l+ IndexedProduction()\l+ IndexedProduction()\l+ getCurrentCharIndex()\l+ getCharAfter()\l+ getCharBefore()\l+ setCurrentCharIndex()\l+ getLookahead()\l+ compare()\l+ toString()\l+ addLookahead()\l}" alt="" coords="5,323,256,605"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for contextFree.grammar.Production:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1grammar_1_1_production__coll__graph.png" border="0" usemap="#context_free_8grammar_8_production_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classcontext_free_1_1grammar_1_1_production-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa793940d0a65f644495141b4fe4a86c0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1grammar_1_1_production.html#aa793940d0a65f644495141b4fe4a86c0">Production</a> (List&lt; String &gt; lt, List&lt; String &gt; rt)</td></tr>
<tr class="memdesc:aa793940d0a65f644495141b4fe4a86c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an object production and initialize it's rightSimbolsList.  <a href="#aa793940d0a65f644495141b4fe4a86c0"></a><br/></td></tr>
<tr class="memitem:a1db3c4e260abdcac50a8425cc9bd901f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1grammar_1_1_production.html#a1db3c4e260abdcac50a8425cc9bd901f">Production</a> (String lt, String rt)</td></tr>
<tr class="memdesc:a1db3c4e260abdcac50a8425cc9bd901f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a Complete production representation.  <a href="#a1db3c4e260abdcac50a8425cc9bd901f"></a><br/></td></tr>
<tr class="memitem:a70571ea099db67d650e87f0de16d684b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1grammar_1_1_production.html#a70571ea099db67d650e87f0de16d684b">Production</a> (String lt, String rt, List&lt; String &gt; V, List&lt; String &gt; T)  throws InterruptedException</td></tr>
<tr class="memdesc:a70571ea099db67d650e87f0de16d684b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a Complete production representation.  <a href="#a70571ea099db67d650e87f0de16d684b"></a><br/></td></tr>
<tr class="memitem:aff0ed3fbde7f7a476a993936c27ddef7"><td class="memItemLeft" align="right" valign="top">List&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1grammar_1_1_production.html#aff0ed3fbde7f7a476a993936c27ddef7">getLeftSimbols</a> ()</td></tr>
<tr class="memitem:ae3030c00cadbd869bba5d382f8e4d06e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae3030c00cadbd869bba5d382f8e4d06e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setLeftSimbols</b> (List&lt; String &gt;lt)</td></tr>
<tr class="memitem:a78a08f36758b1ad2699e04c48c04286a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a78a08f36758b1ad2699e04c48c04286a"></a>
List&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>getRightSimbols</b> ()</td></tr>
<tr class="memitem:ac51e7fc47a11fb23641aa8a7ee905dc4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac51e7fc47a11fb23641aa8a7ee905dc4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setRightSimbols</b> (List&lt; String &gt;rt)</td></tr>
<tr class="memitem:a6b42819c4b8af1aa759edf3ad5978f67"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6b42819c4b8af1aa759edf3ad5978f67"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>getLeft</b> ()</td></tr>
<tr class="memitem:a0b6496bc60eefe88fd4652a6f01ec15e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b6496bc60eefe88fd4652a6f01ec15e"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>getRight</b> ()</td></tr>
<tr class="memitem:a43d78cd85446efbbffe59a2278c410d1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a43d78cd85446efbbffe59a2278c410d1"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1grammar_1_1_production.html#a43d78cd85446efbbffe59a2278c410d1">toString</a> ()</td></tr>
<tr class="memdesc:a43d78cd85446efbbffe59a2278c410d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">return a formatted string in the form axioms :: = expression <br/></td></tr>
<tr><td colspan="2"><h2><a name="pac-attribs"></a>
Package Attributes</h2></td></tr>
<tr class="memitem:ab72c30da44fb1fbf41b9a70bf799ef58"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab72c30da44fb1fbf41b9a70bf799ef58"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>right</b></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:ad188a705cd57d55d32fd198e6af71f75"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad188a705cd57d55d32fd198e6af71f75"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>left</b></td></tr>
<tr class="memitem:ae726278e9261fd332c0afcdc348735e8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae726278e9261fd332c0afcdc348735e8"></a>
List&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>leftSimbols</b></td></tr>
<tr class="memitem:aa19049895b51192f5e151dc2a3894865"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa19049895b51192f5e151dc2a3894865"></a>
List&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>rightSimbols</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_production_8java_source.html#l00008">8</a> of file <a class="el" href="_production_8java_source.html">Production.java</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aa793940d0a65f644495141b4fe4a86c0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">contextFree.grammar.Production.Production </td>
          <td>(</td>
          <td class="paramtype">List&lt; String &gt;&#160;</td>
          <td class="paramname"><em>lt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; String &gt;&#160;</td>
          <td class="paramname"><em>rt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates an object production and initialize it's rightSimbolsList. </p>
<p>passing between the rightSimbols and leftSimbols. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">leftSimbols</td><td>part of production </td></tr>
    <tr><td class="paramname">rightSimbols</td><td>part of production </td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_production_8java_source.html#l00026">26</a> of file <a class="el" href="_production_8java_source.html">Production.java</a>.</p>

</div>
</div>
<a class="anchor" id="a1db3c4e260abdcac50a8425cc9bd901f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">contextFree.grammar.Production.Production </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>lt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>rt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a Complete production representation. </p>
<p>Initialize two list with one element with entire symbol on left and right part of the production. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lt</td><td>Left part of the production </td></tr>
    <tr><td class="paramname">rt</td><td>Right part of the production </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_production_8java_source.html#l00038">38</a> of file <a class="el" href="_production_8java_source.html">Production.java</a>.</p>

</div>
</div>
<a class="anchor" id="a70571ea099db67d650e87f0de16d684b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">contextFree.grammar.Production.Production </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>lt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>rt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; String &gt;&#160;</td>
          <td class="paramname"><em>V</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; String &gt;&#160;</td>
          <td class="paramname"><em>T</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>  throws InterruptedException</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a Complete production representation. </p>
<p>Initialize two list with symbols of left and right part of the production. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lt</td><td>Left part of the production </td></tr>
    <tr><td class="paramname">rt</td><td>Right part of the production </td></tr>
    <tr><td class="paramname">V</td><td>The list of terminal </td></tr>
    <tr><td class="paramname">T</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">InterruptedException</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author:</dt><dd>Paolo Pino </dd></dl>

<p>Definition at line <a class="el" href="_production_8java_source.html#l00057">57</a> of file <a class="el" href="_production_8java_source.html">Production.java</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aff0ed3fbde7f7a476a993936c27ddef7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;String&gt; <a class="el" href="classcontext_free_1_1grammar_1_1_production.html#aff0ed3fbde7f7a476a993936c27ddef7">contextFree.grammar.Production.getLeftSimbols</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="section return"><dt>Returns:</dt><dd>theleftSimbolst side of production </dd></dl>

<p>Definition at line <a class="el" href="_production_8java_source.html#l00077">77</a> of file <a class="el" href="_production_8java_source.html">Production.java</a>.</p>

<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1grammar_1_1_production_aff0ed3fbde7f7a476a993936c27ddef7_icgraph.png" border="0" usemap="#classcontext_free_1_1grammar_1_1_production_aff0ed3fbde7f7a476a993936c27ddef7_icgraph" alt=""/></div>
<map name="classcontext_free_1_1grammar_1_1_production_aff0ed3fbde7f7a476a993936c27ddef7_icgraph" id="classcontext_free_1_1grammar_1_1_production_aff0ed3fbde7f7a476a993936c27ddef7_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1scanner_1_1_indexed_production.html#a8346f298c18af8ce2f48442a12b3a123" title="Compare to production without the dot." alt="" coords="357,5,664,32"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/contextFree/grammar/<a class="el" href="_production_8java_source.html">Production.java</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>contextFree</b>      </li>
      <li class="navelem"><a class="el" href="namespacecontext_free_1_1grammar.html">grammar</a>      </li>
      <li class="navelem"><a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a>      </li>

    <li class="footer">Generated on Fri Mar 30 2012 21:26:25 for Context Free LALR1 compiler by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
